A partner can be a client or a vendor, currently we only use them for clients.
| name | value |
|---|---|
| partnerNumber | P-31010 |
| personType | LEGAL_PERSON |
| tradeName | Test AG |
| contactCaption | Test AG - Hamburg |
| postalAddress | “firm”: “Test AG”, “department”: “Geschäftsleitung”, “street”: “Shanghai-Allee 1”, “zipcode”: “20123”, “city”: “Hamburg”, “country”: “Germany” |
| officePhoneNumber | +49 40 654321-0 |
| emailAddress | hamburg@test-ag.example.org |
| registrationOffice | Registergericht Hamburg |
| registrationNumber | 1234567 |
HTTP GET "/api/hs/office/persons?name=Hostsharing+eG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "bb7b76f1-1922-46aa-8c22-468c70c3a9fa", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
Even in production data we expect this query to return just a single result.
HTTP POST "/api/hs/office/persons" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG"
}
EOF
=> status: 201 CREATED 1223603d-1a3b-4e0c-a244-027585d22eb2
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"caption" : "Test AG - Hamburg",
"postalAddress" : {
"firm" : "Test AG",
"department" : "Geschäftsleitung",
"street" : "Shanghai-Allee 1",
"zipcode" : "20123",
"city" : "Hamburg",
"country" : "Germany"
},
"phoneNumbers" : {
"office" : "+49 40 654321-0"
},
"emailAddresses" : {
"main" : "hamburg@test-ag.example.org"
}
}
EOF
=> status: 201 CREATED 72952ade-de15-4718-b66b-bccafd3a59f2
HTTP POST "/api/hs/office/partners" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
-H 'Content-Type: application/json' \
--data-binary @- <<EOF
{
"partnerNumber" : "P-31010",
"partnerRel" : {
"anchor.uuid" : "bb7b76f1-1922-46aa-8c22-468c70c3a9fa", // Person: Hostsharing eG
"holder.uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
"contact.uuid" : "72952ade-de15-4718-b66b-bccafd3a59f2" // Contact: Test AG - Hamburg
},
"details" : {
"registrationOffice" : "Registergericht Hamburg",
"registrationNumber" : "1234567"
}
}
EOF
=> status: 201 CREATED ceaf680a-e52e-4625-b80f-fe70a66e6428
HTTP GET "/api/hs/office/relations?relationType=PARTNER&contactData=Test+AG+-+Hamburg" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "d8468486-cc0a-4797-b367-4c393953f190",
"anchor" : {
"uuid" : "bb7b76f1-1922-46aa-8c22-468c70c3a9fa", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "72952ade-de15-4718-b66b-bccafd3a59f2", // Contact: Test AG - Hamburg
"caption" : "Test AG - Hamburg",
"postalAddress" : {
"zipcode" : "20123",
"firm" : "Test AG",
"country" : "Germany",
"city" : "Hamburg",
"street" : "Shanghai-Allee 1",
"department" : "Geschäftsleitung"
},
"emailAddresses" : {
"main" : "hamburg@test-ag.example.org"
},
"phoneNumbers" : {
"office" : "+49 40 654321-0"
}
}
} ]
generated on 2026-07-17 01:42:24 for branch